package com.mercadoutils.domain;





import java.io.IOException;


import com.mercadolibre.sdk.Meli;
import com.mercadolibre.sdk.MeliException;
import com.ning.http.client.FluentStringsMap;
import com.ning.http.client.Response;


public class SearchTest {
	private Meli m = new Meli(8617768438635034L, "t7XhJxUeW4HYf2Ii6p4FHyvNpddZ6tDW");
	
	
	public SearchTest() {
	}
	
	public String doSearch() throws IOException, MeliException{
		FluentStringsMap params = new FluentStringsMap();
		params.add("q", "ipod");
		Response r = this.m.get("/sites/MLA/search",params);
		return r.getResponseBody().toString(); 
	}

	
	

}
